<?php

namespace haibao\erp\model\data\product;

class ProductRelCategoryProperty extends \haibao\erp\model\data\Base{
    
    const VALUETYPE_DEFAULT = 1;
    const VALUETYPE_MANUAL = 2;
    
	/**
	 * 单品Id
	 */
	public $ProductId;
	/**
	 * 单品属性ID
	 */
	public $PropertyId;
	/**
	 * 属性名
	 */
	public $PropertyName;
	/**
	 * 属性值
	 */
	public $PropertyValue;
	
	/**
	 * 值的类型，分为默认值和手动值
	 */
	public $ValueType;
	
	/**
	 * 创建时间
	 */
	public $CreateTime;
	
	
	public function __construct(){
		parent::__construct();
		
		$this->intField('ProductId', 'ProductId',true);
		$this->intField('PropertyId', 'PropertyId',true);
		$this->stringField('PropertyName', 'PropertyName',true);
		$this->stringField('PropertyValue', 'PropertyValue',true);
		$this->stringField('ValueType', 'ValueType',true);
		$this->dateField('CreateTime', 'CreateTime',true);

		
		$this->setTableName('ProductRelCategoryProperty');
	}
}